<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
          // 6. 数组排序
          let arr2 = [33, 55, 11, 24, 67, 89, 23];
        let sortedArray = arr2.sort((a, b) => a - b);
        console.log('排序后的数组为:', sortedArray);

    </script>
</body>
</html>